/*
 * PID.h
 *
 *  Created on: Jun 10, 2024
 *      Author: Liangmiyi
 */

#ifndef INC_SVPWM_H_
#define INC_SVPWM_H_

#include <MY_INC/PHY/PHY_Parameter.h>
#include <stdint.h>

// �궨��ѡ����Ʒ�ʽ
#define SVPWM_Seven_1   1U
#define SVPWM_Seven_2   2U
#define SVPWM_Five_Low  3U
#define SVPWM_Five_High 4U
#define SPWM            5U

void Three_Phase_Inverter_SVPWM_Seven_1(uint32_t Pulse_width_HRTIM[3], float Vref[3], const uint32_t PWM_period);
void Three_Phase_Inverter_SVPWM_Seven_2(uint32_t Pulse_width_HRTIM[3], float Vref[3], float Udc,
                                        const uint32_t PWM_period);
void Three_Phase_Inverter_SVPWM_Five_Low(uint32_t Pulse_width_HRTIM[3], float Vref[3], const uint32_t PWM_period);
void Three_Phase_Inverter_SVPWM_Five_High(uint32_t Pulse_width_HRTIM[3], float Vref[3], float Udc,
                                          const uint32_t PWM_period);
void Three_Phase_Inverter_SPWM(uint32_t Pulse_width_HRTIM[3], float Vref[3], float Udc, const uint32_t PWM_period);

#endif /* INC_PID_H_ */
